package ar.com.photo_admin.domain

import grails.plugins.springsecurity.Secured

@Secured(['ROLE_PHOTOGRAPHER'])
class StatisticsController {

	def statisticsService
	
    def index() { }
	
	def show() { 
		
		[ amountOrders : statisticsService.getTotalAmountOrders(),
		  amountEvents : statisticsService.getTotalAmountEvents(),
		  totalIncome : statisticsService.getTotalIncomeOrders(),
		  amountNotFinalized: statisticsService.getAmountNotFinalized(),
		  amountOrdersInLastYear : statisticsService.generateAmounOrdersRecievedInLastYearData(),
		  amountEventsAndAlbumsInLastYear : statisticsService.generateAmountEventsAndAlbumsInLastYearData(),	 
		  incomeInLastYear: statisticsService.generateIncomeInLastYearData() ]
	}
	
	def examples(){
		
	}
}